<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"
  style="padding: 20px 0 0 0;">


  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">标题</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
          <input type="text" style="width: 300px;" name="title" value="{{ d.params.title || '' }}" lay-verify="title" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">关于我们内容</label>

    <div style="display: inline-block;">
      <textarea id="demo" style="display: none;"></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">成立年份</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
          <input type="text" style="width: 300px;" name="createYear" value="{{ d.params.createYear || '' }}" lay-verify="createYear" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">解决方案数量</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
          <input type="text" style="width: 300px;" name="solutionNum" value="{{ d.params.solutionNum || '' }}" lay-verify="solutionNum" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">合作单位数量</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
          <input type="text" style="width: 300px;" name="partnerNum" value="{{ d.params.partnerNum || '' }}" lay-verify="partnerNum" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">占地</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
          <input type="text" style="width: 300px;" name="landSquare" value="{{ d.params.landSquare || '' }}" lay-verify="landSquare" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;">占地</label>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
      <legend>上传多张图片</legend>
    </fieldset>

    <div class="layui-upload">
      <button type="button" class="layui-btn" id="test2">多图片上传</button>
      <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
        预览图：
        <div class="layui-upload-list" id="demo2"></div>
      </blockquote>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px;"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<script>
  layui.use(['admin', 'form', 'upload'], function () {
    console.log("Aa")
    var $ = layui.$
      , form = layui.form
      , setter = layui.setter
      , upload = layui.upload;

    //上传头像
    upload.render({
      elem: '#layuiadmin-upload-useradmin'
      , url: setter.request.baseUrl + '/upload/file/image'
      , accept: 'images'
      , method: 'get'
      , acceptMime: 'image/*'
      , done: function (res) {
        console.log(res)
        $(this.item).prev("div").children("input").val(res.downUrl)
        $("#img-intsance").attr("src", res.downUrl);
      }
    });
  })
</script>